import React from 'react';
class Button2 extends React.Component {
  render() {
    let { children, ...props } = this.props;
    return <button {...props}>自己的-{children}</button>
  }
}

function Button(props) {
  let { children, ...attr } = props;
  return <button {...attr}>自己的-{children}</button>
}
export default Button